package com.yunji.cabinet.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author : peter-zhu
 * @date : 2024/12/23 19:23
 * @description : TODO
 **/
@Data
public class CabinetScanCreateDTO {
    @NotBlank(message = "扫描码不能为空")
    @ApiModelProperty(value = "扫描唯一code", required = true, example = "scanCode")
    private String scanCode;

    @NotNull(message = "操作类型不能为null")
    @ApiModelProperty(value = "下单次数传1 查看商品传2", required = true, example = "1")
    private Integer actionType;

    @NotNull(message = "二维码不能为null")
    @ApiModelProperty(value = "二维码", required = true, example = "1")
    private String qrCode;

    @ApiModelProperty(value = "商品id")
    private Long productId;

    @ApiModelProperty(value = "订单号")
    private String orderCode;
//    @ApiModelProperty(value = "用户id", required = true, example = "1")
//    @NotNull(message = "用户id不能为空")
//    private Long scanUserId;

//    @ApiModelProperty(value = "用户电话", required = true, example = "13128851392")
//    @NotBlank(message = "用户电话不能为空")
//    private String scanPhone;
//
//    @ApiModelProperty(value = "用户名", required = true, example = "user1")
//    @NotBlank(message = "用户名不能为空")
//    private String scanUserName;
}
